<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>无损读文本</title>
        <script src="js.js"></script>
    </head>
    <body>
        <h1>无损读文本</h1><br/>
        <input type='file' accept='text/utf-8' onchange='openFile(event)'><br>
        <br/><div id="output"></div>
    </body>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</html>